﻿<Window x:Class="MindFactorial.LaunchPoint.Console.ConsoleWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2006" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d"
    xmlns:Console="clr-namespace:MindFactorial.LaunchPoint.Console"
	xmlns:ConsoleLib="clr-namespace:MindFactorial.LaunchPoint.Console.Library;assembly=LaunchPoint.Console.Library"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"                  
                  Height="768" Width="1024"
                  AllowsTransparency="False"
                  MinHeight="480" MinWidth="640" 
                  ResizeMode="CanResizeWithGrip" 
                  WindowStartupLocation="CenterScreen" 
                  WindowState="Normal" 
                  Background="{x:Null}"
                  WindowStyle="None"
                  
    >
    <Window.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="Images.xaml"/>
            </ResourceDictionary.MergedDictionaries>            
        </ResourceDictionary>
    </Window.Resources>
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="30" />
            <RowDefinition Height="*" />            
        </Grid.RowDefinitions>
        
        <!-- Bottom status bar area-->
        <Image x:Name="imgPanaproConsole" 
               HorizontalAlignment="Right" 
               Margin="0,0,32,7" 
               VerticalAlignment="Bottom" 
               Width="146" Height="12" 
               Grid.Row="1" Source="{StaticResource panaproConsole1_0}" 
               Stretch="Fill"/>


        <!-- window titlebar area-->
        <Label Grid.Row="0" 
               x:Name="labelConsole" 
               FontSize="12" Visibility="Visible" Content="LaunchPoint Console" 
               BorderThickness="0,0,0,0" AllowDrop="False" 
               Foreground="{StaticResource {x:Static SystemColors.ControlLightLightBrushKey}}" 
               Background="{StaticResource ConsoleHeaderBar}" FontFamily="Verdana" 
               FontWeight="Bold" VerticalAlignment="Stretch" Height="30" />  
        
        <!-- Start: window control buttons -->
        <Image d:LayoutOverrides="VerticalAlignment, Width, Height" x:Name="imageCloseButton" 
               Grid.Row="0"
               Width="43" Height="19" Source="{StaticResource closeApplicationOn}" Stretch="None" 
               HorizontalAlignment="Right" Margin="0,0,5,10.5"/>        
        
        <Image d:LayoutOverrides="VerticalAlignment, Width, Height" 
               Grid.Row="0"
               Width="35" Height="19" Source="{StaticResource minimizeButtonOn}" Stretch="None" 
               x:Name="imageMinimizeButton" HorizontalAlignment="Right" 
               Margin="0,-0.417,83,11.417"/>
        
        <Image x:Name="imageMaximizeButton" 
               Grid.Row="0"
               Source="{StaticResource maximizeButtonOn}" Stretch="None" d:LayoutOverrides="VerticalAlignment" 
               HorizontalAlignment="Right" Margin="0,-1.334,48,9.834" Width="35"/>
        <!-- End:  window control buttons -->
        
        
        <!-- resize grip -->
        <ResizeGrip HorizontalAlignment="Right" Margin="0,0,0,0" VerticalAlignment="Bottom" Grid.Row="2"/>
        
        <!-- content area for entire application -->
        <Frame x:Name="appbrowser" 
               Background="Azure"
               Grid.Row="1" 
               NavigationUIVisibility="Hidden"
               
               
               />
        
        <!-- wait UI (must be last as it guarantees z-index is above everything else)-->
        <Console:WaitUIControl 
            Width="auto"  
            x:Name="waitUI" 
            Background="White" 
            Opacity=".85" 
            Grid.Row="1"           
            Visibility="Collapsed" />
    </Grid>
</Window>
